<%@ page language="java" import="com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>

<html:html>
<%String chipTracContext = "/" + ConfigManager.getChipTracContext(); %>

<HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<script src="<%=chipTracContext%>/jsp/includes/scripts/validations.js"></script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/functions.js"></script>

<script language='javascript'>

function uploadFile()
{
    var pa = document.getElementById("errors");
    pa.innerHTML = '';
    if (document.priceForm.theFile.value == '')
    {
        pa.innerHTML = '<li>Please select a file to upload</li>';
        document.priceForm.theFile.focus();
        return;
    }

    document.priceForm.action = '<%=chipTracContext%>/priceSetting.do?action=uploadFile';
    document.priceForm.submit();
 }
</script>

<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

	<!-- Side Navigation start -->
	<%@ include file="/jsp/marketing/price_setting_menu.jsp" %>
	<!-- end of the side navigations -->
     </TD>
	<TD bgcolor="#ffffff">
        <IMG height="9" src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width="8"></TD>
        <TD bgcolor="#ffffff"><IMG height=460 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width="2"></TD>
        <TD valign="top" width="100%">
        <IMG height="1" src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width="500" border="0">
        <BR>
	<html:form name="priceForm" type="com.scalar.chiptrack.marketing.forms.PricingForm"  enctype="multipart/form-data" action="/priceSetting.do">
            
    <table border="0" width="100%" align="center">
        <TR><TD colspan="4" class="NArialW" align="center">Pricing File Upload</TD></TR>
        <tr><td align="left" class='NArialL'>&nbsp;<FONT id="errors" color='FF0000'></font></td></tr>
		<tr><td colspan='4' align="center"><chiptrack:errors styleClass='NArialL'/></td></tr>
        <tr><td colspan='4' align="center"><chiptrack:info styleClass='NArialL'/></td></tr>
	    <tr><td><img height=20 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>
        <tr>
        <td class='NArialL' align="center"> Upload File:&nbsp;&nbsp; <html:file styleClass="txfield" property="theFile"></html:file>
            &nbsp;&nbsp;&nbsp;&nbsp;
		</td>
		</tr>

        <tr><td><IMG height=40 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></td></tr>
		<tr><TD bgcolor="#ffffff"><IMG height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></tr>
		<tr><td align="center"><a href="javascript:uploadFile()"><img border="0" align ="center" src="<%=chipTracContext%>/jsp/includes/images/upload.gif" width="56" height="18" onMouseOver="window.status='Click to upload the File';return true" onmouseout="window.status='';return true" title="Click here to upload the File"></a>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="javascript:document.priceForm.reset();"><img border="0" align ="center" src="<%=chipTracContext%>/jsp/includes/images/reset.gif" onMouseOver="window.status='Click to Reset';return true" onmouseout="window.status='';return true" title="Click here to Reset"></a></td>
		</tr>
      </table>
     </html:form>
    </TD>
</TR>
</TABLE>

<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
</BODY>
</html:html>